package com.wyp168.leetcode;

public class Recursion02 {
    public static void main(String[] args) {
        System.out.println(MonkeyEatPeach(10));
    }

    public static Float MonkeyEatPeach(int i) {
        if (i == 1) {
            return 1F;
        } else {
            return MonkeyEatPeach(i - 1) + 1.5F;
        }
    }
}
